package com.gali.juc;

/**
 * @Auther: gali
 * @Date: 2022-08-19 20:08
 * @Description:
 */
public class InterruptedDemo3 {
    public static void main(String[] args) {
        System.out.println(Thread.currentThread().getName()+"\t"+Thread.interrupted());
        System.out.println(Thread.currentThread().getName()+"\t"+Thread.interrupted());
        System.out.println("1");
        Thread.currentThread().interrupt();
        System.out.println("2");
        System.out.println(Thread.currentThread().getName()+"\t"+Thread.interrupted());
        System.out.println(Thread.currentThread().getName()+"\t"+Thread.interrupted());
    }
}
